package com.cb.compass;

import com.cb.core.test.BaseManagerTestCase;

public class PointBasicServiceTestCase  extends BaseManagerTestCase {
//	private PointBasicService pointBasicService;
//	private PointStrategyManager pointStrategyManager;
//	private OrderLogManager orderLogManager;
//	private UserLevelStrategyManager userLevelStrategyManager;
//	private UserLevelManager userLevelManager;
//	private PointTempRecordManager pointTempRecordManager;
//	public void setUserLevelStrategyManager(
//			UserLevelStrategyManager userLevelStrategyManager) {
//		this.userLevelStrategyManager = userLevelStrategyManager;
//	}
//
//	public void setUserLevelManager(UserLevelManager userLevelManager) {
//		this.userLevelManager = userLevelManager;
//	}
//
//	public void setPointTempRecordManager(
//			PointTempRecordManager pointTempRecordManager) {
//		this.pointTempRecordManager = pointTempRecordManager;
//	}
//
//	public void setPointBasicService(PointBasicService pointBasicService) {
//		this.pointBasicService = pointBasicService;
//	}
//	
//	public void setPointStrategyManager(PointStrategyManager pointStrategyManager) {
//		this.pointStrategyManager = pointStrategyManager;
//	}
//
//	public void setOrderLogManager(OrderLogManager orderLogManager) {
//		this.orderLogManager = orderLogManager;
//	}
//
//	public void testIncrease(){
//		
////		PointStrategy pointStrategy=pointStrategyManager.getPointStrategyByStatus();
//		PointContext pointContext=new PointContext();
//		UserLevel userLevel=userLevelManager.get(new Long(2));
//		OrderLog orderLog=new OrderLog();
//		orderLog.setOrderDiscountMoney(1000.0);
//		pointContext.setUserLevel(userLevel);
//		pointContext.setOrderLog(orderLog);
//		List<PointStrategy> pointStrategys=pointStrategyManager.getAll();
//		PointStrategy pointStrategy=null;
//		for(PointStrategy p:pointStrategys){
//			pointStrategy=p;
//		}
////		pointBasicService.pointUpdateStrategy(pointStrategy);
//		pointBasicService.pointIncreaseByorder(pointContext);
//	}
//	public void testDecrease(){
//		PointContext pointContext=new PointContext();
//		OrderLog orderLog=orderLogManager.get(new Long(1));
//		UserLevel userLevel=userLevelManager.get(new Long(2));
//		pointContext.setUserLevel(userLevel);
//		pointContext.setOrderLog(orderLog);
//		pointBasicService.pointDecreaseByorder(pointContext);
//	}
}
